package com.hailin.compress;

import java.io.IOException;

/**
 * @Description   
 * @Author hailin
 * @Date 2018/6/22 10:53  
 * @Version 1.0
 */  
public interface Compress {

    /**
     * 数据压缩
     * @param data
     * @return
     * @throws IOException
     */
     byte[] compress(byte[] data) throws IOException;

    /**
     * 数据解压缩
     *
     * @param data
     * @return
     * @throws IOException
     */
    byte[] uncompress(byte[] data) throws IOException;

}
